<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>停车场系统登陆</title>
<script language="JavaScript" src="js/sha1.js"></script>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

<script type="text/javascript">
	//表单验证
	function submitLoginForm() {
		document.LoginForm.czymm.value = calcSHA1(document.LoginForm.czymm.value);
		document.LoginForm.submit();
	}
</script>
</head>

<body>
	<s:form name="LoginForm" action="loginAction!login.action">
		<br>
		<br>
		<br>
		<br>
		<br>
		<br>
		<br>
		<br>
		<br>
		<br>
		<br>
		<table align=center>

			<!-- 注释 -->
			<tr>
				<td>操作员编号：</td>
				<td><s:textfield id="czybh" name="czybh" /></td>
			</tr>

			<tr>
				<td>操作员密码：</td>
				<td><s:password id="czymm" name="czymm" /></td>
			</tr>
			<tr>
				<td colspan="2"><input onClick="submitLoginForm()" type=button
					value=" 登陆 " name=Submit1> <input
					onClick="clearLoginForm()" type=button value="重置" name=clean_button></td>
			</tr>
			<tr>
				<td colspan="2"><s:fielderror name="loginErrors"
						cssStyle="color:red;" /></td>
			</tr>
		</table>
	</s:form>

	<script type="text/javascript">
		document.LoginForm.czybh.value = "888888";
		document.LoginForm.czymm.value = "0";
	</script>

	<script type="text/javascript">
		function clearLoginForm() {
			document.LoginForm.czybh.value = "888888";
			document.LoginForm.czymm.value = "0";
		}
	</script>

</body>
</html>
